package edu.nju.desserthouse.action.business;

import java.io.Serializable;
import java.sql.Date;
import java.util.ArrayList;

import nju.edu.desserthouse.model.Vip;

public class VipInfoBean implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private int active;
	private int paused;
	private int stopped;
	private double activeRatio;
	private double pausedRatio;
	private double stoppedRatio;
	private int notknown;
	private int male;
	private int female;
	private double notknownRatio;
	private double maleRatio;
	private double femaleRatio;
	
	private ArrayList<Vip> vip = new ArrayList<Vip>();
	
	public int getVipState(int i){
		return vip.get(i - 1).getState();
	}
	
	public int getGender(int i){
		return vip.get(i - 1).getGender();
	}
	
	public String getAddr(int i){
		return vip.get(i).getAddr();
	}
	
	public Date getBrith(int i){
		return vip.get(i).getBirth();
	}
	public int getListSize(){
		return vip.size();
	}
	
	public void setVipList(ArrayList<Vip> vip){
		this.vip = vip;
	}

	public int getActive() {
		return active;
	}

	public void setActive(int active) {
		this.active = active;
	}

	public int getPaused() {
		return paused;
	}

	public void setPaused(int paused) {
		this.paused = paused;
	}

	public int getStopped() {
		return stopped;
	}

	public void setStopped(int stopped) {
		this.stopped = stopped;
	}

	public double getActiveRatio() {
		return activeRatio;
	}

	public void setActiveRatio(double activeRatio) {
		this.activeRatio = activeRatio;
	}

	public double getPausedRatio() {
		return pausedRatio;
	}

	public void setPausedRatio(double pausedRatio) {
		this.pausedRatio = pausedRatio;
	}

	public double getStoppedRatio() {
		return stoppedRatio;
	}

	public void setStoppedRatio(double stoppedRatio) {
		this.stoppedRatio = stoppedRatio;
	}

	public int getNotknown() {
		return notknown;
	}

	public void setNotknown(int notknown) {
		this.notknown = notknown;
	}

	public int getMale() {
		return male;
	}

	public void setMale(int male) {
		this.male = male;
	}

	public int getFemale() {
		return female;
	}

	public void setFemale(int female) {
		this.female = female;
	}

	public double getNotknownRatio() {
		return notknownRatio;
	}

	public void setNotknownRatio(double notknownRatio) {
		this.notknownRatio = notknownRatio;
	}

	public double getMaleRatio() {
		return maleRatio;
	}

	public void setMaleRatio(double maleRatio) {
		this.maleRatio = maleRatio;
	}

	public double getFemaleRatio() {
		return femaleRatio;
	}

	public void setFemaleRatio(double femaleRatio) {
		this.femaleRatio = femaleRatio;
	}
	
	public Vip getVip(int i){
		return vip.get(i);
	}
}
